﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.审计字段;

namespace PersonnelSystemManagement.系统管理
{
    /// <summary>
    /// 角色信息表
    /// </summary>
    public class Roles : AuditableEntityBase
    {
        /// <summary>
        /// 主键 ID
        /// </summary>
        [Key]
        public int id { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(50, ErrorMessage = "角色名称长度不能超过 50 个字符")]
        public string? RoleName { get; set; }

        /// <summary>
        /// 上级角色 ID
        /// </summary>
        public int? SuperiorRoleID { get; set; }

        /// <summary>
        /// 别名
        /// </summary>
        [StringLength(50, ErrorMessage = "别名长度不能超过 50 个字符")]
        public string? Alias { get; set; }
    }
}
